﻿using Coldairarrow.Entity.View;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.View
{
    public partial interface IView_WorkloadStatisticsBusiness
    {
        Task<PageResult<View_WorkloadStatistics>> GetDataListAsync(PageInput<WorkloadConditionDTO> input);
        Task<View_WorkloadStatistics> GetTheDataAsync(string id);
        Task AddDataAsync(View_WorkloadStatistics data);
        Task UpdateDataAsync(View_WorkloadStatistics data);
        Task DeleteDataAsync(List<string> ids);

        Task<List<View_WorkloadStatistics>> GetTheDataListAsync(WorkloadConditionDTO input);
    }

    public class WorkloadConditionDTO
    {
        public string Condition { get; set; }
        public string Keyword { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public string StartDate { get; set; }

        /// <summary>
        /// 结束日期
        /// </summary>
        public string EndDate { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        public string DepartmentId { get; set; }

        /// <summary>
        /// 工序Id
        /// </summary>
        public string ProcedureId { get; set; }

    }

}